package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.pojo.Dish;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishMapper extends BaseMapper<Dish> {

     Page<DishDto> pageDish(Page<DishDto> page, String name) ;

     DishDto selectWithFlavor(Long id);

    List<DishDto> listWithFlavor(Long categoryId, String name);

    List<DishDto> getDishBySetmealId(Long setmealId);
}
